package org.cmg.study.spring;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author CMG
 * @version 1.0
 * @cLassName UserServiceImpl
 * @description
 * @date 2021/9/1 9:50
 **/
@Service("userService")
public class UserServiceImpl implements IUserService{
    @Resource(name = "userDao")
    private UserDao userDao;

    public UserDao getUserDao(){
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void outContent() {
        userDao.outContent();
        System.out.println("一个在线学习编程网站");
    }
}
